package com.property.manage.dao.rent;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.property.manage.model.rent.RentEntity;
import com.property.manage.model.rent.RentPaymentEntity;
import com.property.manage.model.rent.RentPaymentVo;
import com.property.manage.model.rent.RentVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

/**
 * 描述
 *
 * @author lwb
 * @since 2020/7/15
 */
@Repository
public interface RentPaymentMapper extends BaseMapper<RentPaymentEntity> {

    IPage<RentPaymentVo> getHouseRentPage(@Param("page") IPage<RentPaymentVo> page, @Param("villageId") Integer villageId, @Param("building")Integer building, @Param("unit") Integer unit, @Param("roomNumber")String roomNumber, @Param("startTime")String startTime,@Param("endTime")String endTime);
    List<RentPaymentVo> getHouseRents(@Param("villageId") Integer villageId, @Param("building")Integer building, @Param("unit") Integer unit, @Param("roomNumber")String roomNumber, @Param("startTime")String startTime, @Param("endTime")String endTime);
    RentPaymentVo getHouseRent(@Param("id") Integer id);
    RentPaymentVo getCount(@Param("villageId") Integer villageId, @Param("startTime")String startTime, @Param("endTime")String endTime);

}
